//
//  YKApproveListIV2temCell.m
//  YunKang
//
//  Created by leoking870 on 2018/6/13.
//  Copyright © 2018年 leoking870. All rights reserved.
//

#import "YKApproveListIV2temCell.h"

@interface YKApproveListIV2temCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;

@property (weak, nonatomic) IBOutlet UILabel *descLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;
@property (weak, nonatomic) IBOutlet UILabel *scoreLabel;
@end

@implementation YKApproveListIV2temCell
@dynamic tableViewItem;

- (void)cellWillAppear {
    [super cellWillAppear];
    self.scoreLabel.text = @"";
    self.nameLabel.text = self.tableViewItem.model.C_NAME;
    self.numberLabel.text = self.tableViewItem.model.BUSINESSCODE;
    //self.typeLabel.text = self.tableViewItem.model.ST_NAME;
    self.descLabel.text = [NSString stringWithFormat:@"提交人:%@", self.tableViewItem.model.TJR];
    
    self.dateLabel.text = self.tableViewItem.model.TJSJ;
    self.statusLabel.text = self.tableViewItem.model.TYPENAME;
    
    [self.contentView.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        if ([obj isKindOfClass:[UILabel class]]) {
            UILabel *label = (UILabel *)obj;
            label.textColor = [UIColor blackColor];
        }
    }];
}

@end
